<!DOCTYPE HTML>
<html>
<head>
    <script language="JavaScript" src="../resource/base/mootools-core-1.4.5.js"></script>
    <script language="JavaScript" src="../resource/ycl.js"></script>
    <script language="JavaScript" src="../resource/core/template.js"></script>
</head>
<body>
<input id="GYTU" type="text" name="wokao" rule="must" format="caocaocao">
</body>
<script>
    var json = {'haha':'中华人民'};
    var html = '<label name="{name}" type="{type}" haha="{haha}" format="{format}" id="{id}"></label>';
    var re = YCL.template(html, $('GYTU'), json);
    alert(re);
</script>
</html>